﻿using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using YJTTool.DrugControls.ViewModels;
using YJTTool.DrugControls.Views;

namespace YJTTool.DrugControls
{
    public class DrugControlsModule : IModule
    {
        private readonly IRegionManager _regionManager;

        public DrugControlsModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }
        public void OnInitialized(IContainerProvider containerProvider)
        {
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            _regionManager.RegisterViewWithRegion("ContentRegion", typeof(DrugControlsView));
            containerRegistry.RegisterForNavigation<DrugControlsView>(typeof(DrugControlsView).FullName);

        }
    }
}